package day5.Work;

public class Programmer extends Employee{
    private String grade;

    public Programmer() {

    }

    public Programmer(String id, String name, String grade) {
        super(id, name);
        this.grade = grade;
    }
    @Override
    public void doWork(){
        super.doWork();
        System.out.println("他是程序员，等级为："+grade);
    }

    @Override
    public String toString() {
        return "[程序员]姓名："+getName()+",等级："+grade;
    }
}
